﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;

using DQYT.HTDZ.BLL;
using DQYT.HTDZ.Model;

namespace DQYT.HTDZ.Web.BDELEBOX
{
    public partial class Show : Page
    {        
        public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					decimal PDGID=(Convert.ToDecimal(strid));
					ShowInfo(PDGID);
				}
			}
		}
		
	private void ShowInfo(decimal PDGID)
	{
		BDELEBOXBLL bll=new BDELEBOXBLL();
		BDELEBOXModel model=bll.GetModel(PDGID);
		this.lblPDGID.Text=model.PDGID.ToString();
		this.lblPDGXH.Text=model.PDGXH;
		this.lblSCCJ.Text=model.SCCJ;
		this.lblPDGLB.Text=model.PDGLB;
		this.lblISVALID.Text=model.ISVALID.ToString();
		this.lblISUSED.Text=model.ISUSED.ToString();

	}


    }
}
